package cn.sunxyz.behavior.command;

/**
 * Created by yangrd on 2017/5/13.
 */
public class Invoker {

    private Command command;

    public Invoker(Command command) {
        this.command = command;
    }

    public void action() {
        System.out.println("发出命令");
        command.execute();
    }
}
